package cn.com.oceansoft.business.os.api.qrcode.persistence;

import cn.com.oceansoft.business.os.api.qrcode.domain.CheckIn;
import cn.com.oceansoft.business.os.api.qrcode.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 系统字典表数据库操作接口
 *
 * @author: chenw
 * @time: 2014/5/26 0026 下午 19:29
 */
@Repository
public interface IQrcodeMapper {

    User findUserByIdAndName(Map<String, String> param);

    void saveCheckIn(CheckIn checkIn);

    int checkUserLogin(String openId);

    List<CheckIn> findtAwardList( @Param("awardid") String awardid ,@Param("num") String num);

    void saveAwardResult(@Param("userid") String userid, @Param("awardid") String awardid);

    int checkIsCheckIn(User user);

    int getDbid();

    CheckIn findCheckInByOpenId(String openId);

    List<CheckIn> findAward(String awardid);
}
